import Vue from 'vue'

import App from './App'
import router from './router'
import store from './store'
//npm install vue-resource --save-dev
import VueResource from 'vue-resource'
Vue.use(VueResource)

import ElementUI from 'element-ui';
import '@/styles/element-variables.scss';
// import '@/assets/css/font.css'//字体图库
// import '/static/iconfont/iconfont.css'//字体图标
import '@/styles/element-ui.scss';
Vue.use(ElementUI);
// import VCharts from 'v-charts'
// Vue.use(VCharts)

import '@/permission' //路由跳转进度
//vue的全局变量
import Global_ from './utils/request.js'
Vue.prototype.GLOBAL = Global_;

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  components: { App },
  router,
  store,
  template: '<App/>'
}).$mount('#app')
